package org.realteam.hibernate.test.model.inheritance;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import org.hibernate.annotations.Type;

@Entity
@DiscriminatorValue("2")
public class TomCat extends Cat{
	
	@Column(name = "TOM_SEX")
	@Type(type= "Gender")
	private Gender tomSex;
	
	private Integer tomAge;

	public Gender getTomSex() {
		return tomSex;
	}

	public void setTomSex(Gender tomSex) {
		this.tomSex = tomSex;
	}

	public Integer getTomAge() {
		return tomAge;
	}

	public void setTomAge(Integer tomAge) {
		this.tomAge = tomAge;
	}
	
}
